package com.zkyc.framework.user.controller;

import com.zkyc.framework.common.vo.ResultVO;
import com.zkyc.framework.user.service.ImageValidateCodeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@RequestMapping()
public class ImageValidateCodeController {

    @Autowired
    private ImageValidateCodeService service;
    //获取验证码
    @GetMapping(   "imgCode")
    public ResultVO getCode(String uuid){
        return service.getCode(uuid);
    }

    public static void main(String[] args) {
        UUID uuid = UUID.randomUUID();
        System.out.println(uuid);
    }


}